$(function() {
	var win = $(window);
	var frame_head = $(".frame-head");
	var frame_main = $(".frame-main");
	var frame_bottom = $(".frame-bottom");
	var frame_head_height = frame_head.height();
	var frame_bottom_height = frame_bottom.height();
	function set_frame_main_height(){
		var new_height = win.height()-frame_head_height-frame_bottom_height
		frame_main.height(new_height);
		// frame_main.find("iframe").height(new_height)
	}
	win.on("resize",set_frame_main_height)
	set_frame_main_height();
})